package com.dj.mingkong.admin.biz.repository.database.music;

import com.dj.mingkong.common.infrastructure.base.dto.query.QueryVo;
import com.dj.mingkong.common.infrastructure.base.repository.BaseDatabaseRepository;
import com.dj.mingkong.common.infrastructure.eo.database.music.AlbumLikeEo;
import com.dj.mingkong.admin.biz.repository.database.music.mapper.AlbumLikeMapper;
import org.springframework.stereotype.Repository;

/**
 * 专辑点赞Repository
 *
 * @author zenglonghui
 * @date: 2023/2/3 11:14
 */
@Repository
public class AlbumLikeRepository extends BaseDatabaseRepository<AlbumLikeMapper, AlbumLikeEo, QueryVo> {
    public boolean deleteByAlbumId(Long albumId) {
        return lambdaUpdate().eq(AlbumLikeEo::getAlbumId, albumId).remove();
    }
}
